package tests;

import modele.modelesdelangage.FabriqueModeleDeLangage;
import modele.modelesdelangage.ModeleDeLangage;

public class TestJNA
{
	 public static void main(String[] args) 
	 {
		 ModeleDeLangage mdl = FabriqueModeleDeLangage.creerModeleDeLangage("data/ML_3-gram_JEP-2002-2004-2008.arpa", "data/ML_3-gram_JEP-2002-2004-2008.lex");
		 //DAOModeleDeLangage m = new DAOModeleArpaSRILM("data/ML_3-gram_JEP-2002-2004-2008.arpa", "data/ML_3-gram_JEP-2002-2004-2008.lex");
	     
	     long deb = System.currentTimeMillis();
	     System.out.println("zoo => " + mdl.getProbabilite("zoo"));
	     long fin = System.currentTimeMillis();
		 System.out.println("Execute en : " + (fin - deb) + "ms");
		 
		 deb = System.currentTimeMillis();
	     System.out.println("dont le centre => " + mdl.getProbabilite("dont", "cercle", "le"));
	     System.out.println("zoo => " + mdl.getProbabilite("zoo"));
	     System.out.println("cinq plus moins => " + mdl.getProbabilite("moins", "plus", "cinq"));
	     fin = System.currentTimeMillis();
	     System.out.println("Execute en : " + (fin - deb) + "ms");
		 
		 
	 }
}
